import Vue from 'vue'
import Router from 'vue-router'
// 主界面
import Home from './pages/home/indexHome.vue'
// 购物车
import ShoppingCart from './pages/shoppingCart/shoppingCart'
// 每日签到
import EverydaySign from './pages/everydaySign/everyDaySign.vue'
// 领券中心
import DiscountTicketCenter from './pages/discountTicketCenter/discountTicketCenter.vue'
// 我的订单列表
import OrderList from './pages/orderList/OrderList.vue'
// 分类中心
import ClassifyCenter from './pages/classifyCenter/classifyCenter'
// 嗨拼团列表页
import GoodsAssemble from './pages/goodsAssemble/goodsAssemble.vue'
// 我的拼团列表页
import MyAssemble from './pages/myAssemble/myAssemble'
// 每日秒杀列表页
import EverydayBuy from './pages/everydayBuy/EverdayBuy.vue'
// 有好货列表页
import HasGoodGoods from './pages/hasGoodGoods/HasGoodGoods.vue'
// 0元试用列表页
import FreeUse from './pages/freeUse/FreeUse.vue'
// 商品详情页
import ProductDetail from './pages/productDetail/productDetail.vue'
//引入评论列表
import CommentList from './pages/commentsList/commentList'
Vue.use(Router)

export default new Router({
    routes: [
        // 主界面
        {
            path: '/',
            name: 'home',
            component: Home
        },
        // 购物车
        {
            path: "/shoppingCart",
            name: 'shoppingCart',
            component: ShoppingCart
        },
        // 每日签到
        {
            path: '/everydaySign',
            name: 'everydaySign',
            component: EverydaySign
        },
        // 领劵中心
        {
            path: '/discountTicketCenter',
            name: 'DiscountTicketCenter',
            component: DiscountTicketCenter
        },
        // 订单列表（我的订单列表）
        {
            path: '/orderList',
            name: 'orderList',
            component: OrderList
        },
        // 分类中心
        {
            path: '/classifyCenter',
            name: 'classifyCenter',
            component: ClassifyCenter
        },
        // 嗨拼团列表
        {
            path: '/GoodsAssemble',
            name: 'GoodsAssemble',
            component: GoodsAssemble,
        },
        // 我的拼团列表
        {
            path: '/MyAssemble',
            name: 'MyAssemble',
            component: MyAssemble,
        },
        // 有好货列表页
        {
            path: '/hasGoodGoods',
            name: 'HasGoodGoods',
            component: HasGoodGoods,
        },
        // 每日秒杀列表页
        {
            path: '/everydayBuy',
            name: 'EverydayBuy',
            component: EverydayBuy,
        },
        // 0元试用列表页
        {
            path: '/freeUse',
            name: 'FreeUse',
            component: FreeUse,
        },
        // 商品的详情
        {
            path: '/productDetail',
            name: 'ProductDetail',
            component: ProductDetail,
        },
        // 评论列表
        {
            path: '/commentList',
            name: 'CommentList',
            component: CommentList,
        },

    ]
})